Platform Explorer / Nuxeo Platform 2021.26

Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.base--widgets1

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layouts.webapp.base inside nuxeo-platform-webapp-base-2021.26.5.jar /OSGI-INF/layouts-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Registration Order

8
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widget name="document_edit_comment" type="textarea">
          <labels>
            <label mode="any">label.editComment</label>
          </labels>
          <helpLabels>
            <label mode="any">label.editComment.tooltip</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>contextData['comment']</field>
          </fields>
          <widgetModes>
            <mode value="create">hidden</mode>
          </widgetModes>
        </widget>
  • <widget name="document_edit_current_version" type="text">
          <labels>
            <label mode="any">label.version</label>
          </labels>
          <helpLabels>
            <label mode="any">label.versioning.currentVersion.tooltip</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>#{versioningManager.getVersionLabel(layoutValue)}</field>
          </fields>
          <widgetModes>
            <mode value="create">hidden</mode>
            <mode value="any">
              #{nxu:test(layoutValue.versionable and
              !layoutValue.folder, 'view', 'hidden')}
            </mode>
          </widgetModes>
        </widget>
  • <widget name="document_edit_versioning_options" type="setVariable">
          <labels>
            <label mode="any">label.versioning.selectVersioningOption</label>
          </labels>
          <helpLabels>
            <label mode="any">label.versioning.changeVersion.tooltip</label>
          </helpLabels>
          <translated>true</translated>
          <widgetModes>
            <mode value="create">hidden</mode>
            <mode value="any">
              #{nxu:test(layoutValue.versionable and not
              layoutValue.folder and
              versioningManager.getVersionIncEditOptions(layoutValue).hasOptions(),
              mode, 'hidden')}
            </mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="var">incOptions</property>
            <property name="value">
              #{versioningManager.getVersionIncEditOptions(layoutValue)}
            </property>
            <property name="cache">true</property>
          </properties>
          <subWidgets>
            <widget name="versioning_options" type="selectOneRadio">
              <fields>
                <field>contextData['VersioningOption']</field>
              </fields>
              <properties widgetMode="edit">
                <property name="defaultValue">
                  #{incOptions.defaultVersioningAction.name()}
                </property>
                <property name="converter">documentVersioningConverter</property>
                <property name="layout">pageDirection</property>
                <property name="required">true</property>
                <property name="requiredMessage">
                  #{messages['error.versioning.none_selected']}
                </property>
              </properties>
              <selectOptions>
                <options itemLabel="#{messages[item.getValue()]}" itemValue="#{item.getKey()}" value="#{incOptions.optionsForDisplay}" var="item"/>
              </selectOptions>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="userPanelTop" type="documentActions">
          <properties widgetMode="view">
            <property name="category">USER_PANEL_TOP</property>
          </properties>
          <controls mode="any">
            <control name="gridStyleClass">gridStyle12</control>
          </controls>
        </widget>
  • <widget name="userPanelLeft" type="documentActions">
          <properties widgetMode="view">
            <property name="category">USER_PANEL_LEFT</property>
          </properties>
          <controls mode="any">
            <control name="gridStyleClass">gridStyle5</control>
          </controls>
        </widget>
  • <widget name="userPanelRight" type="documentActions">
          <properties widgetMode="view">
            <property name="category">USER_PANEL_RIGHT</property>
          </properties>
          <controls mode="any">
            <control name="gridStyleClass">gridStyle7</control>
          </controls>
        </widget>
  • <widget name="userPanelBottom" type="documentActions">
          <properties widgetMode="view">
            <property name="category">USER_PANEL_BOTTOM</property>
          </properties>
          <controls mode="any">
            <control name="gridStyleClass">gridStyle12</control>
          </controls>
        </widget>
  • <widget name="userLayout" type="layout">
          <properties widgetMode="any">
            <property name="name">user</property>
          </properties>
        </widget>
  • <widget name="userAdditionalWidgets" type="documentActions">
          <properties widgetMode="any">
            <property name="category">USER_ADDITIONAL_WIDGETS</property>
            <property name="widgetMode">#{layout.mode}</property>
          </properties>
          <controls mode="any">
            <control name="handleLabels">true</control>
          </controls>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="document_edit_comment" type="textarea">
      <labels>
        <label mode="any">label.editComment</label>
      </labels>
      <helpLabels>
        <label mode="any">label.editComment.tooltip</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>contextData['comment']</field>
      </fields>
      <widgetModes>
        <mode value="create">hidden</mode>
      </widgetModes>
    </widget>

    <widget name="document_edit_current_version" type="text">
      <labels>
        <label mode="any">label.version</label>
      </labels>
      <helpLabels>
        <label mode="any">label.versioning.currentVersion.tooltip</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>#{versioningManager.getVersionLabel(layoutValue)}</field>
      </fields>
      <widgetModes>
        <mode value="create">hidden</mode>
        <mode value="any">
          #{nxu:test(layoutValue.versionable and
          !layoutValue.folder, 'view', 'hidden')}
        </mode>
      </widgetModes>
    </widget>

    <widget name="document_edit_versioning_options" type="setVariable">
      <labels>
        <label mode="any">label.versioning.selectVersioningOption</label>
      </labels>
      <helpLabels>
        <label mode="any">label.versioning.changeVersion.tooltip</label>
      </helpLabels>
      <translated>true</translated>
      <widgetModes>
        <mode value="create">hidden</mode>
        <mode value="any">
          #{nxu:test(layoutValue.versionable and not
          layoutValue.folder and
          versioningManager.getVersionIncEditOptions(layoutValue).hasOptions(),
          mode, 'hidden')}
        </mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="var">incOptions</property>
        <property name="value">
          #{versioningManager.getVersionIncEditOptions(layoutValue)}
        </property>
        <property name="cache">true</property>
      </properties>
      <subWidgets>
        <widget name="versioning_options" type="selectOneRadio">
          <fields>
            <field>contextData['VersioningOption']</field>
          </fields>
          <properties widgetMode="edit">
            <property name="defaultValue">
              #{incOptions.defaultVersioningAction.name()}
            </property>
            <property name="converter">documentVersioningConverter</property>
            <property name="layout">pageDirection</property>
            <property name="required">true</property>
            <property name="requiredMessage">
              #{messages['error.versioning.none_selected']}
            </property>
          </properties>
          <selectOptions>
            <options itemLabel="#{messages[item.getValue()]}" itemValue="#{item.getKey()}" value="#{incOptions.optionsForDisplay}" var="item"/>
          </selectOptions>
        </widget>
      </subWidgets>
    </widget>

    <widget name="userPanelTop" type="documentActions">
      <properties widgetMode="view">
        <property name="category">USER_PANEL_TOP</property>
      </properties>
      <controls mode="any">
        <control name="gridStyleClass">gridStyle12</control>
      </controls>
    </widget>

    <widget name="userPanelLeft" type="documentActions">
      <properties widgetMode="view">
        <property name="category">USER_PANEL_LEFT</property>
      </properties>
      <controls mode="any">
        <control name="gridStyleClass">gridStyle5</control>
      </controls>
    </widget>

    <widget name="userPanelRight" type="documentActions">
      <properties widgetMode="view">
        <property name="category">USER_PANEL_RIGHT</property>
      </properties>
      <controls mode="any">
        <control name="gridStyleClass">gridStyle7</control>
      </controls>
    </widget>

    <widget name="userPanelBottom" type="documentActions">
      <properties widgetMode="view">
        <property name="category">USER_PANEL_BOTTOM</property>
      </properties>
      <controls mode="any">
        <control name="gridStyleClass">gridStyle12</control>
      </controls>
    </widget>

    <widget name="userLayout" type="layout">
      <properties widgetMode="any">
        <property name="name">user</property>
      </properties>
    </widget>


    <widget name="userAdditionalWidgets" type="documentActions">
      <properties widgetMode="any">
        <property name="category">USER_ADDITIONAL_WIDGETS</property>
        <property name="widgetMode">#{layout.mode}</property>
      </properties>
      <controls mode="any">
        <control name="handleLabels">true</control>
      </controls>
    </widget>

  </extension>